<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--一般方式-->

<div>
    <p>主键：<span th:text="${department.id}"></span></p>
    <p>部门名称：<span th:text="*{department.name}"></span></p>
    <p>部门sn：<span th:text="${department.sn}"></span></p>
</div>


<div th:object="${department}">
    <p>主键：<span th:text="*{id}"></span></p>
    <p>部门名称：<span th:text="*{name}"></span></p>
    <p>部门sn：<span th:text="*{sn}"></span></p>
</div>
</body>
</html>